#!/usr/bin/php5
<?php

function main($argc, & $argv)
{
    $m = new MongoClient();

    return 0;

    $db = $m->company;

    $collection = $db->emp;

    $collection->insert(array('title' => 'This is MongoDB'));

    $cursor = $collection->find();

    foreach ($cursor as $docment) {
        echo $docment['title'], PHP_EOL;
    }

    return 0;
}

exit(main($argc, $argv));

